fred@xuni-t01.sc.intel.com [Tue, 2 Aug 2005 10:13:02 +0000 (02:13 -0800)]
Fix compilation issue, and then VTI dom0 is up again.
Signed-off-by Kevin Tian <kevin.tian@intel.com>
fred@xuni-t01.sc.intel.com [Tue, 2 Aug 2005 10:11:41 +0000 (02:11 -0800)]
Final set of HV change to support multiple domains on VTI.
Signed-off-by Anthony Xu <anthony.xu@intel.com>
Signed-off-by Eddie Dong <eddie.dong@intel.com>
Signed-off-by Fred Yang <fred.yang@intel.com>
Signed-off-by Kevin Tian <kevin.tian@intel.com>
fred@xuni-t01.sc.intel.com [Tue, 2 Aug 2005 10:09:24 +0000 (02:09 -0800)]
Add hypercall continuation support, or else dom_mem_op may fail.
Signed-off-by Kevin Tian <kevin.tian@intel.com>
fred@xuni-t01.sc.intel.com [Tue, 2 Aug 2005 10:08:00 +0000 (02:08 -0800)]
Disallow reprogram_ac_timer to change itm, since there's only one
hardware timer source on IA64.
Signed-off-by Kevin Tian <kevin.tian@intel.com>
fred@xuni-t01.sc.intel.com [Tue, 2 Aug 2005 10:05:50 +0000 (02:05 -0800)]
Add copyright info.
Signed-off-by Ke Yu <ke.yu@intel.com>
Signed-off-by Kevin Tian <kevin.tian@intel.com>
djm@kirby.fc.hp.com [Mon, 1 Aug 2005 19:19:36 +0000 (12:19 -0700)]
Merge with latest xen-unstable
djm@kirby.fc.hp.com [Mon, 1 Aug 2005 19:11:00 +0000 (12:11 -0700)]
Fix the build on gcc-3.4.x (ia64 files)
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
djm@kirby.fc.hp.com [Mon, 1 Aug 2005 18:00:10 +0000 (11:00 -0700)]
Workaround new call to do_softirq in scrub_heap_pages in common code
smh22@firebug.cl.cam.ac.uk [Mon, 1 Aug 2005 10:48:24 +0000 (10:48 +0000)]
Manual merge.
smh22@firebug.cl.cam.ac.uk [Mon, 1 Aug 2005 10:45:07 +0000 (10:45 +0000)]
Minor clean ups of time.c and partial build fixes for 2.4
ach61@arcadians.cl.cam.ac.uk [Mon, 1 Aug 2005 10:43:16 +0000 (10:43 +0000)]
PDB: convert ptrace.c and traps.c changes to local patches
kaf24@firebug.cl.cam.ac.uk [Mon, 1 Aug 2005 09:26:51 +0000 (09:26 +0000)]
This patch adds two macros for construction of the
frame_and_sectors field in blkif messages, to eliminate the
"magic shifts" in the blkif code.
It also increases the number of bits representing the sector
number within a page, from 3 to 5, to allow page sizes up to
16K (needed for IA64).
Tested to still work on x86.
Signed-off-by: Matthew Chapman <matthewc@hp.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 1 Aug 2005 09:16:25 +0000 (09:16 +0000)]
While merging my development tree with the latest hg tree I noticed that
VMX support was broken. When you boot an unmodified Linux kernel it gets
stuck in the "Calibrating delay" loop. The reason for this is that the
vmx code is repeatedly delivering timer interrupts.
Correcting the MILLISECS() and friends macros to return s_time_t instead
of ULL fixes this problem. The other changes are just to get rid of
redundant code and variables.
Signed-Off-By: Leendert van Doorn <leendert@watson.ibm.com>
ach61@arcadians.cl.cam.ac.uk [Sun, 31 Jul 2005 21:45:52 +0000 (21:45 +0000)]
PDB: roll out changes to ptrace.c and traps.c
djm@kirby.fc.hp.com [Fri, 29 Jul 2005 20:33:04 +0000 (13:33 -0700)]
Accomodate change to common alloc_domheap_page
djm@kirby.fc.hp.com [Fri, 29 Jul 2005 20:25:03 +0000 (13:25 -0700)]
Merge in minor ia64 Makefile change from xen-unstable
djm@kirby.fc.hp.com [Fri, 29 Jul 2005 18:52:33 +0000 (11:52 -0700)]
Updates to conform to latest xen-unstable
Fix ns16550 to again handle rx2600 console defaults
Signed-off-by Kevin Tian <Kevin.tian@intel.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 29 Jul 2005 11:21:39 +0000 (11:21 +0000)]
dom_mem_ops address_bitsd fix.
kaf24@firebug.cl.cam.ac.uk [Fri, 29 Jul 2005 10:40:39 +0000 (10:40 +0000)]
x86_32 build fix.
kaf24@firebug.cl.cam.ac.uk [Fri, 29 Jul 2005 10:37:30 +0000 (10:37 +0000)]
This patch renames balloon command to "set-mem", so instead of "xm
balloon", we will use "xm set-mem" (as suggested by TODO list)
Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 29 Jul 2005 10:36:53 +0000 (10:36 +0000)]
This patch does 2 jobs:
- Enforce the number of CPUs dom0 will take. See the new variable
"dom0-cpus" in xend-config.sxp (you will want to set this variable to
1 on SMP systems)
- Balloon out dom0 memory when creating domU, if there is not enough
free memory. The lowest level we will balloon out is configured via
the new variable "dom0-min-mem" in xend-config.sxp
I still have a doubt: where to put the code to enforce dom0-cpus. At
the moment I put it into
python/xen/xend/server/SrvDaemon.py, and hopefully that is resonable
enough. Any comment?
Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 29 Jul 2005 10:36:11 +0000 (10:36 +0000)]
Patch for 64-bit VMX guest destroy
64-bit VMX guest can't be destroyed without this patch, as guest page's
reference count problem.
This patch made two point of reference count correct:
1. In invlpg, the old page count need put.
2. There is a specail case for fl1's shadow reference count.=20
=20
Signed-off-by: Chengyuan Li <chengyuan.li@intel.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 29 Jul 2005 10:34:45 +0000 (10:34 +0000)]
Here is our latest patch to enable the Xen tools to
build and work with IA64 Xen.
Signed-off-by: Matt Chapman <matthewc@hp.com>
Acked-by: Dan Magenheimer <dan.magenheimer@hp.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 29 Jul 2005 10:31:22 +0000 (10:31 +0000)]
Attached patch adds a DMA zone to xen, also modifies xen_contig_memory()
to ask for DMA pages.
Signed-off-by: srparish@us.ibm.com
kaf24@firebug.cl.cam.ac.uk [Fri, 29 Jul 2005 10:27:12 +0000 (10:27 +0000)]
This patch updates the CPU field in xm list for multi-vcpu domains.
When a dom runs on multiple physical cpus, the CPU field doesn't have
much meaning. The suggested fix was to replace the value with '-'.
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 29 Jul 2005 10:24:41 +0000 (10:24 +0000)]
... for dom0 if we know we'll need it. This is the xen
counterpart to the previous xenlinux patch which adds this
info to the kernel. Also adds some printk's.
kaf24@firebug.cl.cam.ac.uk [Fri, 29 Jul 2005 10:24:06 +0000 (10:24 +0000)]
... so it builds again and also add a note to the xen elf header
that this kernel should be booted in shadow-translated mode.
kaf24@firebug.cl.cam.ac.uk [Fri, 29 Jul 2005 10:23:07 +0000 (10:23 +0000)]
Really just basic preparation: switch over PAE builds to the new
shadow code, drop old dummy functions, add (fewer) new ones.
kaf24@firebug.cl.cam.ac.uk [Fri, 29 Jul 2005 10:22:03 +0000 (10:22 +0000)]
fix x86_64 domain0 /dev/mem issue
x86_64 miss the define of ARCH_HAS_DEV_MEM, that causes
/drivers/char/mem.c to not show low 1M memory correctly.
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
ach61@arcadians.cl.cam.ac.uk [Thu, 28 Jul 2005 21:32:13 +0000 (21:32 +0000)]
PDB: add some additional files
ach61@arcadians.cl.cam.ac.uk [Thu, 28 Jul 2005 21:28:23 +0000 (21:28 +0000)]
PDB: process targets
fred@localhost.localdomain [Thu, 28 Jul 2005 15:33:34 +0000 (07:33 -0800)]
Make ns16550 rework on tiger4 box
Signed-off-by Kevin Tian <kevin.tian@intel.com>
fred@localhost.localdomain [Thu, 28 Jul 2005 15:29:12 +0000 (07:29 -0800)]
Add kregs change
fred@localhost.localdomain [Thu, 28 Jul 2005 15:16:12 +0000 (07:16 -0800)]
This patch adds necessary support for vcontext merge between
para and vti side. Per Dan's good suggestion, all the changes
are refined into ia64 specific. Accompanied with xeno patches
and a bit libxc change, xen0 + xenU can still work again.
Signed-off-by Eddie Dong <eddie.dong@intel.com>
Signed-off-by Kevin Tian <kevin.tian@intel.com>
Signed-off-by Fred Yang <fred.yang@intel.com>
cl349@firebug.cl.cam.ac.uk [Thu, 28 Jul 2005 12:34:45 +0000 (12:34 +0000)]
merge?
cl349@firebug.cl.cam.ac.uk [Thu, 28 Jul 2005 12:33:53 +0000 (12:33 +0000)]
Don't unbind port when event channel binding fails.
This happens when xend tries to introduce the same domain twice.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Thu, 28 Jul 2005 12:29:23 +0000 (12:29 +0000)]
Simplify code by acking watch as soon as we read it.
Since watches no longer block anyone, this doesn't change semantics.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Thu, 28 Jul 2005 12:25:13 +0000 (12:25 +0000)]
Simplify code by making in and out pointers internal to xenbus_xs.c
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
kaf24@firebug.cl.cam.ac.uk [Thu, 28 Jul 2005 10:20:08 +0000 (10:20 +0000)]
Nicer platform timer string (include clock rate in mhz).
Signed-off-by: Keir Fraser <keir@xensource.com>
fred@localhost.localdomain [Thu, 28 Jul 2005 09:48:15 +0000 (01:48 -0800)]
More syntactic changes for preparation of vcpu_info merge
Signed-off-by Kevin Tian <Kevin.Tian@intel.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 28 Jul 2005 09:37:53 +0000 (09:37 +0000)]
Fix irq.c warning, from aq.
fred@localhost.localdomain [Thu, 28 Jul 2005 09:26:30 +0000 (01:26 -0800)]
Add emulation to rsm.be, which is first encounted in guest fast syscall
path, where little endian is forced just after epc.
Signed-off-by Kevin Tian <kevin.tian@intel.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 28 Jul 2005 09:10:05 +0000 (09:10 +0000)]
Fix gnttab bug in blkfront.
Signed-off-by: Keir Fraser <keir@xensource.com>
fred@localhost.localdomain [Thu, 28 Jul 2005 08:57:06 +0000 (00:57 -0800)]
Fix the issue of complete rebuild for any change
Signed-off-by Kevin Tian <kevin.tian@intel.com>
fred@localhost.localdomain [Thu, 28 Jul 2005 07:08:20 +0000 (23:08 -0800)]
Nop change. Just a test
kaf24@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 23:15:15 +0000 (23:15 +0000)]
Slightly better time debugging support in Xen.
djm@kirby.fc.hp.com [Wed, 27 Jul 2005 20:16:28 +0000 (13:16 -0700)]
Disable NaT support, fast tick and improved PAL support until
multi-domain stabilizes
djm@kirby.fc.hp.com [Wed, 27 Jul 2005 19:57:05 +0000 (12:57 -0700)]
Syntactic changes to prepare for possible vcpu_info changes
djm@kirby.fc.hp.com [Wed, 27 Jul 2005 19:07:07 +0000 (12:07 -0700)]
Add xen-shared-info offset generation
Signed-off-by: Eddie Dong <eddie.dong@intel.com>
Signed-off-by: Kevin Tien <kevin.tien@intel.com>
Signed-off-by: Fred Yang <fred.yang@intel.com>
cl349@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 18:41:49 +0000 (18:41 +0000)]
Get rid of internet_copy.jpg once more.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 18:40:32 +0000 (18:40 +0000)]
Don't ignore exceptions here - the possible RuntimeError is handled already.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 18:31:18 +0000 (18:31 +0000)]
Introduce dom0 to the store.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 18:31:03 +0000 (18:31 +0000)]
Handle introduce_domain failing when the domain is already introduced.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 17:17:09 +0000 (17:17 +0000)]
Always pass around the store machine frame number instead of the linear address.
Also cleanup IOCTL_PRIVCMD_INITDOMAIN_STORE.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 17:06:02 +0000 (17:06 +0000)]
Add xc_init_store python binding.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 17:04:47 +0000 (17:04 +0000)]
Fix read of integers from database on event channel restore.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 17:03:00 +0000 (17:03 +0000)]
Make XENSTORED_DEBUG create a xenstored trace logfile.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 17:00:24 +0000 (17:00 +0000)]
Move SIF_BLK_BE_DOMAIN and SIF_NET_BE_DOMAIN definitions to where they are used.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 16:57:37 +0000 (16:57 +0000)]
merge?
cl349@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 16:57:01 +0000 (16:57 +0000)]
Don't auto-add domains we don't know about.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
kaf24@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 16:18:02 +0000 (16:18 +0000)]
Add IBM Cyclone support to Xen.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 15:32:44 +0000 (15:32 +0000)]
Add HPET support to Xen. It is quicker to access and more
precise than the PIT.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 11:20:47 +0000 (11:20 +0000)]
On opt_nosmp, also force num_cores to 1. Do this in setup.c
instead of cpu/common.c. This is where opt_nosmp is defined,
and it reduces diff of cpu/ subdir against native Linux.
Signed-off-by: Keir Fraser <keir@xensource.com>
sos22@douglas.cl.cam.ac.uk [Wed, 27 Jul 2005 11:02:30 +0000 (11:02 +0000)]
Kill a bad assertion.
Signed-off-by: Steven Smith, sos22@cam.ac.uk
sos22@douglas.cl.cam.ac.uk [Wed, 27 Jul 2005 10:54:39 +0000 (10:54 +0000)]
Merge.
Signed-off-by: Steven Smith, sos22@cam.ac.uk
sos22@douglas.cl.cam.ac.uk [Wed, 27 Jul 2005 10:52:29 +0000 (10:52 +0000)]
Make sure that opt_nosmp also disables hyperthreading. This stops us
from trying to create domains on non-existent threads, which would
lead to a rather nasty crash.
Signed-off-by: Steven Smith, sos22@cam.ac.uk
cl349@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 09:56:31 +0000 (09:56 +0000)]
Rename file with space in name.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
--HG--
rename : tools/sv/images/internet copy.jpg => tools/sv/images/internet_copy.jpg
kaf24@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 09:24:51 +0000 (09:24 +0000)]
Fix memory reservation in XenLinux.
Signed-off-by: Keir Fraser <keir@xensource.com>
iap10@freefall.cl.cam.ac.uk [Wed, 27 Jul 2005 00:27:36 +0000 (00:27 +0000)]
Frob the Linux-2.6 configs to enable PAE (HIGHMEM_64G) if XEN_TARGET_X86_PAE=y
Signed-off-by: ian@xensource.com
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 18:41:39 +0000 (18:41 +0000)]
merge?
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 17:38:33 +0000 (17:38 +0000)]
Clean up xenbus code not to use priorities.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 17:27:26 +0000 (17:27 +0000)]
Fix case where watch callback unregisters itself: do not try to ack it
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 17:25:57 +0000 (17:25 +0000)]
Implement xenbus_dev_error() and xenbus_dev_ok() functions
for better error reporting using the store.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 17:24:22 +0000 (17:24 +0000)]
Scrub initial xenstore page, free xendev structure.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 17:22:38 +0000 (17:22 +0000)]
Fix locking: probe can be called from several places, so ensure
we lock for it.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 17:19:38 +0000 (17:19 +0000)]
Fix bus watch code, and clean up a little.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 17:18:55 +0000 (17:18 +0000)]
Note about when device_find is fixed
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 17:18:11 +0000 (17:18 +0000)]
Modify to assume transactions
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 17:16:55 +0000 (17:16 +0000)]
Do not use device_find: crashes for some reason
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 17:15:53 +0000 (17:15 +0000)]
Fix missing argument rename in xenbus_exists.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 17:07:50 +0000 (17:07 +0000)]
Grab lock around registering watch.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 17:07:05 +0000 (17:07 +0000)]
Add watch for dynamic add/remove of devices.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 17:04:33 +0000 (17:04 +0000)]
Fix return from xenbus_scanf: returns number scanned, not 0!
Fix xenbus_write args in xenbus_printf
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 16:59:40 +0000 (16:59 +0000)]
Major xenbus cleanup
1) Make xenbus_* functions first-class citizens, evict xs_ prefix.
2) Add xenbus_scanf and xenbus_printf instead of multiple functions
3) Remove unused code from xenbus.c
4) Use standard debugging macros.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
kaf24@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 16:17:04 +0000 (16:17 +0000)]
Manual merge.
kaf24@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 16:16:39 +0000 (16:16 +0000)]
Attached patch removes the empty domain if
xc.memory_increase_reservation fails.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 15:57:18 +0000 (15:57 +0000)]
Update python bindings - xs_watch doesn't support a priority anymore.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 15:37:40 +0000 (15:37 +0000)]
Don't enter sv subdirectory until its Makefile supports targets
like `clean' or actually does anything useful.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 15:26:32 +0000 (15:26 +0000)]
Remove ill-conceived concept of watches blocking reply on
connection which did write/mkdir/rm/setperm etc.
This causes deadlocks in real life, and I can't see a sane way
of avoiding them: it is reasonable for someone to ignore watch
notifications while doing other actions, and that means that
we can do other writes. These writes can block pending other
watchers; if one of these is the process blocked awaiting our
ack, we deadlock.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 15:24:28 +0000 (15:24 +0000)]
Fix bug where transaction fires multiple events.
Add general trace() call to help future debugging.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 15:23:50 +0000 (15:23 +0000)]
Fix bug where watch messages doesn't go out. Also change xs_test
to more closely represent xenbus behaviour so we can see the bug.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 15:21:32 +0000 (15:21 +0000)]
Allow test.sh to take arg: name of test to start with
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 15:21:00 +0000 (15:21 +0000)]
Make testing more reliable: wait for event after async so we know
child has done command
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 15:20:09 +0000 (15:20 +0000)]
Change watches: operations block until everyone has acked.
Watch events are no longer sent to self
Watches no longer take a priority
async and asyncwait commands for xs_test, now we need to continue
despite blocking ops.
Print test name at end of verbose run on failure.
Use --trace-file arg to xenstored when testing
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
kaf24@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 15:16:39 +0000 (15:16 +0000)]
This patch prevents you from getting a screen full of stack trace when
trying to run commands like xm list as a normal user, and instead provides a
helpful error message.
Signed-off-by: Sean Dague <sean@dague.net>
kaf24@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 15:16:12 +0000 (15:16 +0000)]
Manual merge.
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 15:13:56 +0000 (15:13 +0000)]
Change from bool indicating blocked to an enum: when watches go
synchronous this makes it easier (because then we have two reasons
to block)
Instead of using return value, use explicit state member inside
struct connection.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 15:09:43 +0000 (15:09 +0000)]
Test and fix acknowedge_watch from returning EINVAL.
Also ensure that daemon re-xmits event if they ack wrong thing
(otherwise confused clients get stuck, as we will send no more
data while awaiting ack).
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 15:08:22 +0000 (15:08 +0000)]
Fix testsuite to ignore tool/ dir.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 14:02:33 +0000 (14:02 +0000)]
Start of code to persistent store connections when xenstored restarts
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>